import React from 'react';

export default class extends React.Component {
  constructor(props) {
    super(props);
    const time = new Date();
    this.state = {
      hours: time.getHours(),
      minutes: time.getMinutes(),
    }
  }
  render() {
    const { hours, minutes} = this.state;
    return <div>
      {hours}:{minutes}
    </div>
  }
}